package com.summer.dao;
import com.summer.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    User selectUserByUserName (@Param("username") String userName);
    User selectUserByID(@Param("uid") int id);
    int addUser(User user);
    int updateUser(User user);
    int adminupdateUser(User user);
    List<User> selectAllUsers();
    int deleteUserById(int id);
}
